<template lang="">
<div>
    v-text && v-html && 模板语法
</div>
<div style="color:red" v-text="namm"/>
<div style="color:red">
    {{name}}
</div>
<div v-html="namm"></div>
<input @intput="setnamm"/>
<input: value="namm"/>
</template>
<script>
export default{
    data() {
        return {
            namm:'<div style="color: blue">123123div'
        }
    },
    methods: {
        setnamm(e){
            console.log(e.target.value)
            this.namm - e.target.value
        }
    },
}
</script>
<style lang="">
</style>